<%--
$Id: orders-edit.jsp 13 2010-11-02 15:35:59Z feigme $
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>Order <c:out value="${order.id}"/></title>
</head>
<body>
    <form action="${ctx}/example/orders/<c:out value="${order.id}"/>" method="post">
    <table>
        <tr>
    		<td>ID</td>
    		<td><input name="id" type="text" disabled="disabled" value="<c:out value="${order.id}"/>"/>
    		<input name="id" type="hidden" value="<c:out value="${order.id}"/>"/></td>
    	</tr>
    	<tr>
    		<td>Client</td>
    		<td><input name="clientName" type="text" value="<c:out value="${order.clientName}"/>"/></td>
    	</tr>
    	<tr>
    		<td>Amount</td>
    		<td><input name="amount" type="text" value="<c:out value="${order.amount}"/>"/></td>
    	</tr>
        <tr>
            <td colspan="2">
                <button type="submit">submit</button>
            </td>
        </tr>
    </table>
    </form> 	
    <a href="${ctx }/example/orders">Back to Orders</a>
</body>
</html>
	